import * as types from '../mutation-types'

const state = {
    headNavRouter: '',
    sideMenuRouter: ''
}

const actions = {
    set_current_route: ({ commit }, paths) => {
        commit(types.SET_CURRENT_ROUTE, paths)
    }
}
const mutations = {
    [types.SET_CURRENT_ROUTE](state, paths) {
        state.headNavRouter = paths.rootPath
        state.sideMenuRouter = paths.fullPath
    }
}

export default {
    state,
    actions,
    mutations
}